package com.wanglibao.woodtrade.woodtrade.ui.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;

import com.wanglibao.woodtrade.woodtrade.MyApplication;

/**
 * Created by lugg on 2016/5/9.
 */
public class BaseFragment extends Fragment implements View.OnClickListener {
    public MyApplication myApplication;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        myApplication = (MyApplication) getActivity().getApplication();
    }

    public void addViewClicklistener(View... views){
        for (int i = 0; i < views.length; i++){
            views[i].setOnClickListener(this);
        }
    }

    @Override
    public void onClick(View v) {

    }
}
